package demo9;

public class OuterClass {
    public static int a = 100;
    public  int b = 10;
    void methodOuterClass(){
        System.out.println("methodOuterClass");
        class InnerClass{
            int b = 20;
            void methodInnerClass(){
                System.out.println(a);
                System.out.println(b);
                System.out.println("methodInnerClass");
            }
        }
        InnerClass innerClass = new InnerClass();
        innerClass.methodInnerClass();
    }


    public static void main(String[] args) {
        OuterClass outerClass=new OuterClass();
        outerClass.methodOuterClass();
    }
}
